#ifndef __COMMON_H__
#define __COMMON_H__

enum InstructionType {
    GENERATE_PIN,
    FIRST_CONNECT,
    SECOND_CONNECT,
    DATA_COMMUNICATION
};

typedef struct {
    uint32_t resp_code;
    uint8_t *body;
} DATA;

#define KEY_LENGTH 16 // 密钥长度，单位为字节

#define RANDOM_LENGTH 16 // 随机数长度，单位为字节

#endif